<div class="servordenes index">
	<h2><?php __('Servordenes');?></h2>
	<table class="art-article" cellpadding="0" cellspacing="0">
	<tr>
					<th><?php echo $this->Paginator->sort('ordene_id');?></th>
				<th><?php echo $this->Paginator->sort('servicio_id');?></th>
				<th><?php echo $this->Paginator->sort('posicion');?></th>
				<th><?php echo $this->Paginator->sort('cantidad');?></th>
			<th class="actions"><?php __('Acciones');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($servordenes as $servordene):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td>
			<?php echo $this->Html->link($servordene['Ordene']['nu_orden'], array('controller' => 'ordenes', 'action' => 'view', $servordene['Ordene']['id'])); ?>
		</td>
		<td>
			<?php echo $this->Html->link($servordene['Servicio']['nm_servicio'], array('controller' => 'servicios', 'action' => 'view', $servordene['Servicio']['id'])); ?>
		</td>
		<td><?php echo $servordene['Servordene']['posicion']; ?>&nbsp;</td>
		<td><?php echo $servordene['Servordene']['cantidad']; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link($this->Html->image('editar.png', array('alt' => 'Editar', 'title' => 'Editar Servordene' )), array('action' => 'edit', $servordene['Servordene']['id'])); ?>
			<?php echo $this->Html->link($this->Html->image('borrar.png', array('alt' => 'Borrar', 'title' => 'Borrar Servordene')), array('action' => 'delete', $servordene['Servordene']['id']), null, sprintf(__('Esta seguro de borrar a este registro?', true), $servordene['Servordene']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Página %page% de %pages%, mostrando %current% Servordenes de %count% en total, comenzando en %start%, terminando en %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('anterior', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('siguiente', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
<div class="actions">
	<h3><?php __('Acciones'); ?></h3>

	<?php echo $this->Html->link($this->Html->image('excel.jpeg', array('alt' => 'Exportar a Excel', 'title' => 'Exportar a Excel' )), array('action' => 'xls')); ?>

	<ul>
		<li><?php echo $this->Html->link(__('Agregar Serv. por orden', true), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('Lista de Ordenes', true), array('controller' => 'ordenes', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Agregar Ordene', true), array('controller' => 'ordenes', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('Lista de Servicios', true), array('controller' => 'servicios', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Agregar Servicio', true), array('controller' => 'servicios', 'action' => 'add')); ?> </li>
	</ul>
</div>